<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>云送---客户填写 </title>
		<script type="text/javascript" src="../js/jquery-2.1.4.min.js"></script>
		<script type="text/javascript" src="../bootstrap/js/bootstrap.min.js"></script>
		<link rel="stylesheet" href="../bootstrap/css/bootstrap.min.css" />
		<script src="../layui/layui.js" charset="utf-8"></script>
		
		<style type="text/css">
			thead th {
				text-align: center
			}
		</style>
	</head>
	<body>
		<div class="container" style="width:100%;padding: 25px 15px;">
			<div class="row clearfix">
				<div class="col-md-12 column" style="padding: 20px;">
					<div style="margin:0 auto;width:200px;text-align: center;" >
						<h3 style="color:red">客户填写</h3>
					</div>
					<table class="table table-bordered" style="margin-top: 20px;text-align: center">
						<thead style="text-align: center">
							<tr class="success" style="text-align: center">
								<th>客户名称</th>
								<th>电话</th>
								<th>地址</th>
							</tr>
						</thead>
						<tbody id="content">
							<tr>
								<th style="width:100px;vertical-align:middle;text-align:center"><input id="customer" class="form-control" type="text" placeholder="客户名称"></th>
								<th style="width:100px;vertical-align:middle;text-align:center"><input id="phone" class="form-control" type="text" placeholder="电话"></th>
								<th style="width:100px;vertical-align:middle;text-align:center"><input id="address" class="form-control" type="text" placeholder="地址"></th>
							
							</tr>
						</tbody>
						<thead style="text-align: center">
							<tr class="success" style="text-align: center">
								<th>电子邮件</th>
								
								<th>传真</th>
								
								<th>邮编</th>
							</tr>
						</thead>
						<tbody id="content">
							<tr>
								<th style="width:100px;vertical-align:middle;text-align:center"><input id="email" class="form-control" type="text" placeholder="电子邮件"></th>
								
								<th style="width:100px;vertical-align:middle;text-align:center"><input id="fax" class="form-control" type="text" placeholder="传真"></th>
								<th style="width:100px;vertical-align:middle;text-align:center"><input id="postCode" class="form-control" type="text" placeholder="邮编"></th>
							</tr>
						</tbody>
						
						<thead style="text-align: center">
							<tr class="success" style="text-align: center">
								<th>客户类型</th>
								<th>企业性质</th>
								<th>企业规模</th>
								
							</tr>
						</thead>
						<tbody id="content">
							<tr>
								<th style="width:100px;vertical-align:middle;text-align:center">
									<select id="customerType" class="form-control" >
										<option value="">客户类型</option>
										<option value="个人用户">个人用户</option>
										<option value="公司用户">公司用户</option>
									</select>
								</th>
								<th style="width:100px;vertical-align:middle;text-align:center">
									<select id="enterpriseProperty" class="form-control">
										<option value="">企业性质</option>
										<option value="国企">国企</option>
										<option value="私企">私企</option>
									</select>
								</th>
								<th style="width:100px;vertical-align:middle;text-align:center">
									<select id="enterpriseSize" class="form-control">
										<option value="">企业规模</option>
										<option value="大型">大型</option>
										<option value="中型">中型</option>
										<option value="小型">小型</option>
									</select>
								</th>
								
							</tr>
						</tbody>
						<thead style="text-align: center">
							<tr class="success" style="text-align: center">
								<th>联系人</th>
								<th>联系人手机</th>
								<th style="color:red;">提示</th>
							</tr>
						</thead>
						<tbody id="content">
							<tr>
								<th style="width:100px;vertical-align:middle;text-align:center"><input id="linkman" class="form-control" type="text" placeholder="联系人"></th>
								<th style="width:100px;vertical-align:middle;text-align:center"><input id="linkmanMobile" class="form-control" type="text" placeholder="联系人手机"></th>
								<th style="width:100px;text-align: center;display:table-cell; vertical-align:middle;">请确认信息无误后点击确认添加按钮</th>
							</tr>
						</tbody>
					</table>
					<div style="margin:0 auto;width:306px;text-align:center">
						<input style="width:100px;height:50px;font-size:20px;float:left;" class="btn" type="button" value="确认添加" onclick="fillin()"/>
						<div style="width:50px;height:50px;float:left;"></div>
						<input style="width:100px;height:50px;font-size:20px;float:left;" class="btn" type="button" value="关闭窗口" onclick="closeWindow()"/>
					</div>
				</div>
			</div>
		</div>
		<input type="hidden" name="hidValue" id="hidValue" />
		<!-- <input type="hidden" name="customerCode" id="customerCode" /> -->
	</body>
	<script  type="text/javascript">
		layui.use(['form', 'laydate', 'jquery', 'table'], function() {
			var form = layui.form;
			var	layer = layui.layer;
			var	laydate = layui.laydate;
			var $ = layui.$;
			
			var customer = JSON.parse($("#hidValue").val());
			
			// 数据回显
			$("#customerCode").val(customer.customerCode);
			$("#customer").val(customer.customer);
			$("#phone").val(customer.phone);
			$("#fax").val(customer.fax);
			$("#address").val(customer.address);
			$("#postCode").val(customer.postCode);
			$("#linkman").val(customer.linKman);
			$("#linkmanMobile").val(customer.linkmanMobile);
			$("#customerType").val(customer.customerType);
			$("#enterpriseProperty").val(customer.enterpriseSize);
			$("#enterpriseSize").val(customer.enterpriseSize);
			$("#email").val(customer.email);
			
		});
	</script>
	
	<!-- 非空判断 及上传等js-->
	<script type="text/javascript" src="../js/customerInsert.js"></script>
	
</html>
